package org.darkforest.dao.redis;

import org.darkforest.dao.redis.templete.AbstractListRedisOper;
import org.darkforest.model.PBoothGoods;

import java.util.List;

/**
 * Created by pc on 2016/11/17.
 */
public interface PBoothGoodsRedisDao  {

    /**
     * 将商品列表写入redis
     * @param key
     * @param pBoothGoodsList
     */
    public void addPBoothGoodsList(String key, List<PBoothGoods> pBoothGoodsList);

    /**
     * 根据key获取redis中存储的列表
     * @param key
     */
    public List<PBoothGoods> getPBoothGoodsListByKey(String key);

    /**
     * 根据key值删除整个列表
     * @param key
     */
    public void deleteList(String key);
}
